package com.abu.course.fallback;

import com.abu.common.Resp;
import com.abu.course.client.ClassroomClient;
import org.springframework.stereotype.Component;

@Component
public class ClassroomFallback implements ClassroomClient {

    @Override
    public Resp getClassroom(Long id) {
        return Resp.error().code(503).msg("服务状态不可用");
    }
}
